home *** CD-ROM | disk | FTP | other *** search
- Path: mix.com!sluggy
- From: billy@mix.com
- Newsgroups: comp.dcom.modems
- Subject: Re: Looking for Autobauding Algorithms
- Date: 12 Jan 1996 15:28:01 -0700
- Organization: Billy's Place
- Sender: root@primenet.com
- Message-ID: <4d6n9h$p2o@nnrp1.news.primenet.com>
- References: <PORTZ.96Jan12084911@delilah.westend.com>
- X-Posted-By: billy@usr6.primenet.com
-
- Michael Portz <portz@westend.com> writes:
-
- > I have a question concerning the realization of algorithms to
- > automatically detect the incoming baudrate:
-
- > - What algorithms are used?
- > - Can it be done with a 16550-stylish UART or does it have to be
- > something like a microcontroller.
-
- This is done by settingthe port to a certain speed, like 9600, then
- having the usr type a char such as a return. Depending on the speed
- this will either generate a return or some other char, which is then
- looked up in a table to get the speed that corresponds with it.
-
- I don't know about the 16550 in particular, but with some UARTs you
- have to drop to 2400 or so and try again if the 9600 test fails. And
- I have to use different lookup tables for different hardware, at least
- in the DEC world.
-
- Billy Y..
-